Linux Command Line and Shell Scripting Bible by Richard Blum & Christine Bresnahan
Author:Richard Blum & Christine Bresnahan [Blum, Richard & Bresnahan, Christine]
Language: eng
Format: epub, azw3, mobi, pdf
Tags: Reference:Computers
ISBN: 9781118004425
Publisher: Wiley
Published: 2008-01-02T10:00:00+00:00
That's simple enough. On the trap command line, you just list the commands you want the shell to execute, along with a space-separated list of signals you want to trap. You can specify the signals either by their numeric value or by their Linux signal name.
Here's a simple example of using the trap command to ignore SIGINT and SIGTERM signals:
$
$ cat test1
#!/bin/bash
# testing signal trapping
#
trap “echo ‘ Sorry! I have trapped Ctrl-C’” SIGINT SIGTERM
echo This is a test program
count=1
while [ $count -le 10 ]
do
echo “Loop #$count”
sleep 5
count=$[ $count + 1 ]
done
echo This is the end of the test program
$
Download
Linux Command Line and Shell Scripting Bible by Richard Blum & Christine Bresnahan.azw3
Linux Command Line and Shell Scripting Bible by Richard Blum & Christine Bresnahan.mobi
Linux Command Line and Shell Scripting Bible by Richard Blum & Christine Bresnahan.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7772)
Filmora Efficient Editing by Alexander Zacharias(5868)
The Infinite Retina by Robert Scoble Irena Cronin(5341)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(4021)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3940)
Edit Like a Pro with iMovie by Regit(3470)
Linux Administration Best Practices by Scott Alan Miller(2864)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2840)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2529)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2442)
Docker on Windows by Stoneman Elton(2323)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2317)
Creative Projects for Rust Programmers by Carlo Milanesi(2288)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2115)
Hands-On Linux for Architects by Denis Salamanca(2056)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(2012)
Computers For Seniors For Dummies by Nancy C. Muir(2009)
The Old New Thing by Raymond Chen(1943)
Linux Kernel Debugging by Kaiwan N Billimoria(1770)
